<?php

namespace app\index\validate;

use think\Validate;

class Merchant extends Validate
{
    protected $rule = [
        "title" => "require",
        "contacts" => "require",
        "contacts_tel" => "require|mobile",
        "logo" => "require",
        "banner" => "require",
        "business" => "require",
        "agree"        => "require",

    ];

    protected $message = [
        'title.require' => '请填写商家名称',
        'contacts.require' => '请填写联系人',
        'contacts_tel.require' => '请填写联系电话',
        'contacts_tel.mobile' => '手机号格式错误',
        'logo.require' => '请上传商家logo',
        'banner.require' => '请上传商家图片',
        'business.require' => '请上传营业执照',
        'business.require' => '请上传营业执照',
        'agree.require' => '请您阅读并同意《商家入住须知》'
    ];

}